@model Adams.Admin.DataTransfer.TarawehPrayers.CreatePrayer.PageLoad
@{
    Layout = "~/Views/TarawehPrayers/_Layout.cshtml";
}
<!-- End .clear -->
<div class="content-box">
    <!-- Start Content Box -->
    <div class="content-box-header">
        <h3>
            Prayer Details</h3>
    </div>
    <!-- End .content-box-header -->
    <div class="content-box-content">
        <form action="" method="post">
            <p>
                <label>
                    Name</label>
                <input class="text-input medium-input" type="text" id="Name" value="@Model.Prayer.Name" />
                <br />
                <small>the name of the Location</small>
            </p>
            <p>
                <label>
                    Time</label>
                <input class="text-input medium-input" type="text" id="Time" value="@Model.Prayer.Time" />
                <br />
                <small></small>
            </p>
            <p>
                <label>
                    Location</label>
                <select id="Location" class="small-input">
                    <option value="">Choose ...</option>
                    @if (Model.Prayer.ID == 0)
                    {
                        foreach (var location in Model.Locations)
                        {
                            <option value="@location.ID" @(ViewBag.LocationID == location.ID ? "selected" : "")>@location.Name</option>
                        }
                    }
                    else
                    {
                        foreach (var location in Model.Locations)
                        {
                            <option value="@location.ID" @(Model.Prayer.Location.ID == location.ID ? "selected" : "")>@location.Name</option>
                        }
                    }
                </select>
                <br />
                <small>Suite Number, Apartment Number, etc</small>
            </p>
            <p>
                <label>
                    Display Order</label>
                <input class="text-input small-input" type="text" id="DisplayOrder" value="@Model.Prayer.DisplayOrder" />
                <br />
                <small></small>
            </p>
            <p>
                <input class="button" id="submit" type="button" value="Submit" />
            </p>
        <div class="clear">
        </div>
        <!-- End .clear -->
        <input id="id" type="hidden" value="@Model.Prayer.ID" />
        </form>
    </div>
    <!-- End .content-box-content -->
</div>
<!-- End .content-box -->
@section Scripts {
    <script type="text/javascript" src="@Url.Content("/Scripts/TarawehPrayers/createprayer.js")"></script>
}
